package com.yinear.grummy.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * ConfigMain
 *
 * @author yinz
 * @date 2018/5/10
 */
@SpringBootApplication
public class ConfigMain implements CommandLineRunner {
    @Autowired
    private AppConfig appConfig;

//    public static void main(String[] args) {
//        SpringApplication.run(ConfigMain.class, args);
//    }
    @Override
    public void run(String... args) throws Exception {
        System.out.println("\n" + appConfig.getEnv());
        System.out.println();
    }
}
